<?php

	include_once ('class_DanhMucSanPham.php');
	$leb = new class_DanhMucSanPham();


	$tb = $leb->selectall();	
	
	// for lap du lieu	
	$skq = '' ;
	foreach ($tb as $row)
	{
		$skq .= '<tr class="sitemap" style="background-color:#EFEFEF" ><td>&nbsp;</td><td><a href="index.php?com=SanPham&fun=list&MaDanhMuc='.$row['MaDanhMuc'].'">'.$row['TenDanhMuc'].'</a>(<font color="red">'.$row['SoLuongEbook'].'</font>)</td><td>&nbsp;</td></tr>' ;
	}
	echo $skq;
	
?>
